package com.design.found.prototype.atguigu.deepclone;

import java.io.Serializable;

/**
 * @ProjectName: design
 * @Package: com.design.found.prototype.atguigu.deepclone
 * @ClassName: DeepCloneableTarget
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/8/30 0030 9:54
 */
public class DeepCloneableTarget implements Serializable ,Cloneable {
    private static final long serialVersionUID = 1L;


    private String cloneName;


    private String cloneClass;

    //构造器
    public DeepCloneableTarget(String cloneName, String cloneClass) { this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    //因为该类的属性，都是 String ,  因此我们这里使用默认的 clone 完成即可
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
